import Layout from '../components/MyLayout';
// import withLayout from '../components/MyLayout';

/*export default function Index() {
  return (
    <Layout>
      <p>Hello Next.js</p>
    </Layout>
  );
}*/



/** Layout as a Higher Order Component*/
/*const Page = () => <p>Hello Next.js</p>;

export default withLayout(Page);*/


/** Page content as a prop*/
const indexPageContent = <p>Hello Next.js</p>;

export default function Index() {
  return <Layout content={indexPageContent} />;
}
